package com.lc.sms.controller;

import com.lc.sms.common.res.ApiResult;
import com.lc.sms.service.TestServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: some desc
 * @author: LChuang
 * @date: 2023/9/22 14:34
 */
@RestController
@RequiredArgsConstructor
public class SmsController {

    private final TestServiceImpl testService;

    @GetMapping("/send")
    public ApiResult send(@RequestParam("phone") String phone){
        return testService.service1(phone);
    }

}
